﻿using MediatR;
using W.Common.Enum;
using W.Purchase.Domain;

namespace W.Purchase.API.Application.Command.ProcurementCommand
{
    public class ProcurementUpdateCommand : IRequest<ApiResult<int>>
    {
        public int ProcurementId { get; set; }
        /// <summary>
        /// 采购单号
        /// </summary>
        public string? ProcurementNo { get; set; }
        /// <summary>
        /// 单据类型
        /// </summary>
        public string? ProcurementTypeName { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string? AssociateNumber { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string? VendorNo { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        public string? ClientName { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string? ProcurementPerson { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string? ProcurementPhone { get; set; }
        /// <summary>
        /// 收货日
        /// </summary>
        public DateTime? Harvestay { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? ProcurementRemark { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? SingleMaker { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? SingleTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public ProcurementState? ProcurementState { get; set; }
        /// <summary>
        /// 是否入账
        /// </summary>
        public bool? IsRecorded { get; set; }
        /// <summary>
        /// 是否退货
        /// </summary>
        public bool? IsReturn { get; set; }
        /// <summary>
        /// 公司Id
        /// </summary>
        public string? office_id { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public int? user_id { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? DeleteName { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        public DateTime? DeleteTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool? IsDelete { get; set; }
        public List<BuyProducts> BuyProducts { get; set; }
    }
}
